﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WF_AddUsersToDepartment.aspx.cs" MasterPageFile="~/index.Master" Inherits="xManagerWebApp.__AdminCompany.WF_AddUsersToDepartment" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <fieldset>
    <legend>Manage users on department levels</legend>
    
    <br />
    <p><label>Department</label>
    <asp:DropDownList ID="DropDown_Departments" CssClass="inline_text" runat="server" Width="160px" OnSelectedIndexChanged="ReloadDepLevel" AutoPostBack="true"></asp:DropDownList>
    </p>
    <p>
    <label>Department Level</label>
    <asp:DropDownList ID="DropDown_DepartmentLevel" runat="server" CssClass="inline_text" Width="160px" OnSelectedIndexChanged="ReloadUsers" AutoPostBack="true"></asp:DropDownList>
    </p>
    <br />
    <br />
    <table style="height: 317px; width: 518px">
        <thead>
        <td style="width: 233px; text-align: center">Employees at selected level</td>
        <td style="width: 43px"></td>
        <td style="text-align: center">Company employees</td>
        
        </thead>
        <tr>
            <td style="width: 233px; text-align: center">
                <asp:ListBox ID="ListBox_UsersOnDepartmentLevel" runat="server" Width="187px" Height="248px"></asp:ListBox>
            </td>
            <td style="width: 43px; text-align: center;">
                <asp:Button ID="AddUser" runat="server" Text="<<" OnClick="AddUserToDepartmentLevel" />
                <br />
                <asp:Button ID="RemoveUser" runat="server" Text=">>" OnClick="RemoveUserFromDepartmentLevel" />
            </td>
            <td style="text-align: center">
                <asp:ListBox ID="ListBox_Users" runat="server" Width="205px" Height="255px"></asp:ListBox>
            </td>
            
        </tr>
    </table>
    
    </fieldset>
</asp:Content>


